import fetch from '../utils/fetch';

////////////////////////////////连接池API//////////////////////////////////////
export const ApiOfPoolList = '/agent/api/w/support/pools';

export const ApiOfPoolRemovePooledObjects = (node, type, key) => {
  let url = '/agent/api/w/support/pools';
  url += !!node ?  '/' + encodeURIComponent(node) : '';
  url +=  '/' + type + '/' + encodeURIComponent(key) + '/';
  return fetch({
    url: url,
    method: 'delete'
  })
}